
package com.shop.cloud.mall.api.controller;

import com.shop.cloud.common.core.constant.SecurityConstants;
import com.shop.cloud.common.core.util.R;
import com.shop.cloud.upms.common.entity.TableArea;
import com.shop.cloud.upms.common.feign.FeignTableAreaService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.*;

/**
 * 地区表
 *
 * @author
 * @date 2023-10-10 15:51:20
 */
@Slf4j
@RestController
@AllArgsConstructor
@RequestMapping("/tablearea")
@Tag(description = "tablearea", name = "地区表api")
public class TableAreaController {

    private final FeignTableAreaService feignTableAreaService;
    /**
     * 地区表分页List
     * @param tableArea 地区表
     * @return
     */
    @Operation(summary = "地区表分页List")
    @GetMapping("/list")
    public R getList(TableArea tableArea) {
        return R.ok(feignTableAreaService.getList(tableArea, SecurityConstants.FROM_IN));
    }
}
